package com.doge.walknovel.business.strategy

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class StrategyNovelViewModel : ViewModel() {
    private val _tabIdx = MutableLiveData<Int>()
    val tabIdx: LiveData<Int> = _tabIdx
    fun updateCurrentTab(idx: Int) {
        if (_tabIdx.value != idx) {
            _tabIdx.value = idx
        }
    }
}
